-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed bug where screen would 'bounce' when presenting in a modal dialog ... #37
base: master
Are you sure you want to change the base?
Conversation
…og on iPad with soft keyboard active in landscape.
@@ -183,7 +183,11 @@ - (void)layoutTokensAndInputWithFrameAdjustment:(BOOL)shouldAdjustFrame | |||
{ | |||
[self.collapsedLabel removeFromSuperview]; | |||
BOOL inputFieldShouldBecomeFirstResponder = self.inputTextField.isFirstResponder; | |||
[self.scrollView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)]; | |||
[self.scrollView.subviews enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { | |||
if (obj == self.inputTextField) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, thanks for the pull-request. Instead of early return, can it be:
if (obj != self.inputTextField) {
[obj removeFromSuperview];
}
That's a matter of style, of course. Feel free to use whichever coding style best fits the rest of the project. |
Any ETA on when this will be merged? I'd love to do a |
@rrossinvicara If you can make the style-change that I commented with that would be great. If getting this bug fixed is urgent, you can modify your pod 'VENTokenField', :git => 'https://github.com/rrossinvicara/VENTokenField.git' |
The style has been updated. |
...on iPad with soft keyboard active in landscape. This was caused by the input text field to lose its first responder status, and then requesting it immediately after.